{% extends 'basepl.html' %}
{% block head %}
    {% load static %}
    <title>留言/评论</title>
    <style>
        #addrl{
            width: 700px;
            height: 590px;
            left: 510px;
            {#left: 200px;#}
            {#border: #666666 solid;#}
            position: absolute;

        }
        #jxrl{
            position: absolute;
            padding-right:10px;
            overflow-y: auto;
            {#overflow-x: hidden;#}
            padding-left:10px;
            SCROLLBAR-FACE-COLOR:#ffffff;
            font-size:11pt;
            padding-bottom:0;
            scrollbar-highlight-color:#ffffff;
            scrollbar-shadow-color:#919192;
            color:black;
            scrollbar-3dlight-color:#ffffff;
            line-height:100%;
            scrollbar-arrow-color:#919192;
            padding-top:0;
            scrollbar-track-color:#ffffff;
            font-family: 宋体;
            scrollbar-darkshadow-color:#ffffff;
            letter-spacing:1pt;
            top: 0;
            background-color: ghostwhite;
            {#border: rgba(56, 25, 169, 0.07) solid ;#}
            width:700px;
            height: 560px;
        }
        #rl{
            position: absolute;
            top: 20px;
            border: grey solid;
        }


        #plshow>table{
            background-color: white;
            {#width: 600px;#}
            {#border: dodgerblue double;#}
            }
        #book{
            width:320px;
        }
        .xueshi{
            width: 20px;
            height: 90px;
        }
        .week{
            width: 60px;
            height: 90px;
        }
        .submit{
            width: 80px;
        }
    </style>
    <script src="{% static '/jquery.min.js' %}"></script>
    <script type="text/javascript" src='/static/tiny_mce/tiny_mce.js'></script>
    <script type="text/javascript">
    tinyMCE.init({
        forced_root_block:'',
        'mode':'exact',
        'theme':'advanced',
        'elements':'dagang',
        'width':495,
        'height':400
    });
    </script>


{% endblock head%}
{% block nav %}
 <li><a href="/teaIndex">首页</a></li>
<li><a href="#top">大学课程教学过程管理系统</a></li>
<li><a href="/">切换账号</a></li>
<li><a href="#">&#9658;{{ request.session.cname }}&#9668;</a></li>
<li><a href="#">关于</a></li>
<li><a href="/">注销</a></li>
{% endblock nav %}
{% block li %}
<li><a href="/teaIndex/teaTask/cdetail">编&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;辑</a></li>
<li><a href="/teaIndex/teaTask/zuoye">作&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;业</a></li>
<li><a href="/teaIndex/teaTask/chengji">成&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;绩</a></li>
<li><a href="/teaIndex/teaTask/detail?val=mingdan">花&nbsp;名&nbsp;册</a></li>
<li><a href="/teaIndex/teaTask/detail?val=chengjidan">成&nbsp;绩&nbsp;
    单</a></li>
{% endblock li %}

{% block section %}
<div id="ly">

        <h5 align="center">选定教材和大纲</h5>
        <form method="POST" enctype="multipart/form-data" >
             {% csrf_token %}
            <label for="">{{ request.session.cname }}&#9658;</label><input type="text" name="book" id="book" placeholder="请输入所选教材" required><br>
            <label for="" >所需课时&#9658;</label><input type="text" name="keshi" id="book" placeholder="请输入所需课时" required><br><br>
            <label for="">大纲:</label><br>
            <textarea name="dagang" id="" cols="50" rows="2">请输入教材大纲</textarea>
            <input class="submit" type="submit" value="发布">
        </form>

</div>
<div id="addrl">
    <div id="jxrl">
     <form method="POST" enctype="multipart/form-data">
        <table id="rl" rules="all">
            <tr><th colspan="4">{{ request.session.cname }}</th></tr>
            <tr>
                <th rowspan="2" width="60px">周<br>次</th>
                <th rowspan="2" width="20px">学<br>时<br>数</th>
                <th width="380px">课堂讲授</th>
                <th width="240px">实验、课程实习及其他</th>
            </tr>
            <tr>
                <th>教学内容摘要<br>(章节名称、讲述内容等)</th>
                <th>内容、地点及时间</th>
            </tr>
            {% csrf_token %}

                {% for c in ctime %}
                <tr>
                    <td align="center"><input name="w{{ c.id }}" class="week" type="text" value=
                            "{{ c.cweek }}"></td>
                    <td align="center"><input name="x{{ c.id }}" class="xueshi" type="text"
                                              value="{{ c.chours }}"></td>
                    <td height="90px"><textarea name="t{{ c.id }}" id="" cols="42"
                                                rows="5">{{ c.ctext }}</textarea></td>
                    <td height="90px"><textarea name="c{{ c.id }}" id="" cols="24"
                                                rows="5">{{ c.catagory }}</textarea></td>
                </tr>
                {% endfor %}
                <tr>
                    <th colspan="3"><input class="submit" type="submit" value="提交"></th>
                    <th><a href="/rlprint/">打印至Excel</a></th>

                </tr>
        </table>
     </form>
    </div>
</div>

{% endblock section %}

